//
//  OneViewController.m
//  BaseView
//
//  Created by 隗杰 on 16/3/31.
//  Copyright © 2016年 baobao. All rights reserved.
//

#import "OneViewController.h"
#import "TwoViewController.h"
#import "BottomView.h"
#import "PlayerManager.h"
@interface OneViewController ()
@property (strong,nonatomic)PlayerManager *playerManager;

@end

@implementation OneViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    BottomView *bottom = [BottomView sharedBottomView];
    [[UIApplication sharedApplication].keyWindow addSubview:bottom];
    PlayerManager *manager = [PlayerManager sharedPlayerManager];
    self.playerManager = manager;
    NSArray *arr = @[@"你的音频地址",@"你的音频地址"];
    [manager PlayWithUrlStrArr:arr];
    
    self.view.backgroundColor = [UIColor greenColor];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"下一页" style: UIBarButtonItemStylePlain target:self action:@selector(nextPage)];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"上一页" style: UIBarButtonItemStylePlain target:self action:@selector(lastPage)];
}

- (void)nextPage {
    [self.navigationController pushViewController:[[TwoViewController alloc] init] animated:YES];
}
- (void)lastPage {
    [self.navigationController popViewControllerAnimated:YES];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
